package com.timepies;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;

public class SplashActivity extends Activity {

	private static final String TAG = SplashActivity.class.getSimpleName();
	private static int SPLASH_TIME_OUT = 3000;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash);
		Log.d(TAG, "onCreate : activity_splash");
		new Handler().postDelayed(new Runnable() {

			@Override
			public void run() {
				Log.d(TAG, "run : activity_splash");
				SplashActivity from = SplashActivity.this;
				Intent i = new Intent(from, ElencoPieActivity.class);
				startActivity(i);
				finish();
			}

		}, SPLASH_TIME_OUT);
	}

}